//
//  MyHeaderView.h
//  Products_B
//
//  Created by lanou on 16/5/28.
//  Copyright © 2016年 朋学友. All rights reserved.
//

#import <UIKit/UIKit.h>

// 这个block，当点击button时进行回调
typedef void (^ClickButtonBlock) (UIButton *button);
@interface MyHeaderView : UIView
@property (nonatomic, strong) UIImageView *videoImageView; // 视频
@property (nonatomic, strong) UIButton *playButton;        // 播放视频的按钮
@property (nonatomic, strong) UILabel *personLabel;        // 上课人数
@property (nonatomic, strong) UIButton *collectionButton;  // 收藏按钮
@property (nonatomic, strong) UIButton *shareButton;       // 分享按钮
@property (nonatomic, strong) UILabel *titleLabel;         // 食课名
@property (nonatomic, strong) UILabel *contentLabel;       // 食课内容简介
@property (nonatomic, strong) UIButton *downUpButton1;     // 收起与下拉按钮
@property (nonatomic, strong) UILabel *xuanjiLabel;        // 选集
@property (nonatomic, strong) UIButton *buyButton;         // 购买button
@property (nonatomic, strong) UILabel *updateLabel;        // 更新到第几集
@property (nonatomic, strong) UIButton *downUpButton2;     // 收起与下拉按钮(显示课程集数)
@property (nonatomic, strong) UIButton *videoButton;       // 1、2、3、4按钮
@property (nonatomic, strong) UILabel *likeNumLabel;       // 多少人觉得很赞
@property (nonatomic, strong) UIButton *likeButton;        // 赞的button
@property (nonatomic, strong) UILabel *abouClass;          // 相关课程
@property (nonatomic, strong) UIButton *jinruButton;       // 进入button

@property (nonatomic, strong) UIView *buttonView;          // 添加n个button（16以前）
@property (nonatomic, strong) UIView *buttonView2;          // 添加button（16以后）

@property (nonatomic, copy) ClickButtonBlock clickButtonBlock;


- (instancetype)initWithFrame:(CGRect)frame clickButtonBlock:(ClickButtonBlock)clickButtonBlack;

- (void)layoutMySubViews;
- (void)layoutMySubViewsOfContentLabel;

- (void)layoutMySubViewsOfButton;

@property (nonatomic, assign) NSInteger upDateToClassNumber;

@end
